package com.axjy.service.impl;

import com.axjy.mapper.ConfigMapper;
import com.axjy.pojo.Systemconfig;
import com.axjy.service.ConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by asus on 2018/3/10.
 */
@Service("configService")
public class ConfigServiceImpl implements ConfigService {

    @Resource
    private ConfigMapper configMapper;

    @Override
    public List<Systemconfig> search() {
        return configMapper.search();
    }

    @Override
    public List<Systemconfig> getByCode(String configCode) {
        return configMapper.getByCode(configCode);
    }

    @Override
    public void updateStatus(Integer isStart, String configCode, String valueName) {
        configMapper.updateStatus(isStart, configCode, valueName);
    }
}
